/**
 * Created with IntelliJ IDEA.
 * User: Tonis
 * Date: 02.04.12
 * Time: 23:48
 * To change this template use File | Settings | File Templates.
 */


function testWaitingGames(){
    jQuery.ajax({
        url:"/lobby/getWaitingGames",
        success: function (data) {
            if (data.status == "FAILURE") {
                stickyError('testWaitingGames failure occurred!', "ERROR: " + data.reason);
            }else {
                log(data);
            }
        },
        error: function (data) {
            stickyError('testWaitingGames error occurred!', "ERROR: " + data);
        },
        type:"get",
        timeout:30000
    });
}